package com.weeho.dongyong.dao;

import com.weeho.dongyong.entity.TaskDetail;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public class TaskDetailDao extends BaseDao {
    public int insertSelective(TaskDetail record) {
        return sqlSession.insert("insertTaskDetailByPrimaryKey", record);
    }

    public int updateByPrimaryKeySelective(TaskDetail record) {
        return sqlSession.update("updateTaskDetailByPrimaryKeySelective", record);
    }

    public int deleteByPrimaryKey(String id) {
        return sqlSession.update("deleteTaskDetailByPrimaryKey", id);
    }

    public TaskDetail selectByPrimaryKey(String id) {
        return sqlSession.selectOne("selectTaskDetailByPrimaryKey", id);
    }

    public List<TaskDetail> selectByCondition(TaskDetail record) {
        return sqlSession.selectList("selectTaskDetailByCondition", record);
    }
}